package com.rainsoftware.LicenseSystem.models.entity;

import com.rainsoftware.LicenseSystem.models.entity.base.BaseEntity;
import gaarason.database.annotation.Column;
import gaarason.database.annotation.Table;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Repository;


@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Table(name = "activationlog")
public class Activationlog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** auto generator start **/


    @Column(name = "license_key_id", nullable = true)
    private Integer licenseKeyId;

    @Column(name = "product_id", nullable = true)
    private Integer productId;

    @Column(name = "activation_time", nullable = true)
    private LocalDateTime activationTime;

    @Column(name = "user_id", nullable = true)
    private Integer userId;

    @Column(name = "machine", length = 256L)
    private String machine;


    /** auto generator end **/

    @Repository
    public static class Model extends BaseEntity.BaseModel<Activationlog, Integer> {

    }

}